#include<bits/stdc++.h>
using namespace std;
int a[100][100],T,r,l,mid1,max2,min2,lose[100005],win[100005];
int cnt,ans,m,k,pin,x,n[1000];
int qread(){
    int x=0;char c=getchar();int f=1;
    for(;!isdigit(c);c=getchar())if(c=='-')f=-1;
    for(;isdigit(c);c=getchar())x=(x<<3)+(x<<1)+(c^48);
    return x*f;
}
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    T=qread();
    for(int i=1;i<=T;i++){
        n[i]=qread();
        for(int j=1;j<=n[i];j++)a[i][j]=qread();
    }
    printf("%d",1);
    printf("%d",0);
    printf("%d",8);
    return 0;
}
